# coding:UTF-8
# ________________________
# Project_Name:pyzidonghua
# File_Name:Administrator
# Author:Administrator
# Date_Time:2022/4/27 23:56
# Description:
# ________________________
import unittest  # 导入测试框架

from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait  # 导入显式等待类
from selenium.webdriver.support import expected_conditions  # 导入等待条件
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.select import Select


class IndexPage():

    # 定义属性
    def __init__(self, driver, wait):
        # 获取从用例层传入的driver和wait
        self.driver = driver
        self.wait = wait

        '''对操作元素及定位方式封装'''

        self.user_input_locator = (By.XPATH, '//*[@id="account"]/input')  # 账号输入框定位符
        self.pwd_input_locator = (By.XPATH, '//*[@id="password"]/input')  # 密码输入框定位符
        self.verif_input_locator = (By.XPATH,'//*[@id="authCode"]/div/input')  # 验证码输入框定位符
        self.login_btn_locator = (By.XPATH,'//*[@id="root"]/div/div[1]/form/div[5]/div/div/span/button')  # 点击登录

        self.click_statistics_locator = (By.XPATH, '//*[@id="root"]/section/aside/div/ul/li[5]/div')  # 点击统计报表
        self.click_recruit_locator = (By.XPATH, '//*[@id="report$Menu"]/li/div')  # 点击招聘报表
        self.click_dop_locator = (By.XPATH, '//*[@id="saleReport$Menu"]/li[1]')  # 点击人事报表
        self.click_query_locator = (By.XPATH, '//*[@id="root"]/section/section/main/div/div[1]/button')  # 点击查询
        self.click_strtime_locator = (By.XPATH, '//*[@id="startTimeDistribute"]/div/input')  # 点击开始时间

        self.click_statistics_locator = (By.XPATH, '//*[@id="root"]/section/aside/div/ul/li[5]/div')  # 点击统计报表


    if __name__ == "__main__":
        pass



